<?php $this->load->view('public/member_pubnav');?>
<?php $user = $this->session->userdata('member_name');?>
<?php $user_id = $this->session->userdata('member_id');?>
<?php if(empty($result)){?>
<div class="main_special">
    <div class="null_special">
        <div id="pic"><img src="/image/publick/user-speical.jpg"></div>
        <div id="con_special">
            <h5>你还没有喜欢过宝贝哦，</h5>
            <?php if(!empty($user)){?>
            <h5 id="me"><a href="javascript:void(0)" onclick="openlogin()">点我</a></h5>
            <?php }else{?>
            <h5 id="me"><a href="javascript:alert('您还未登录，请先登录后再来创建吧~');">点我</a></h5>
            <?php }?>
            <h5>就有了</h5></div>
    </div>
    <p style="color: red;text-align: center"><?php if(!empty($error)) echo urldecode($error);?></p>
</div>
<?php }else{?>
<div class="main_special1">
			 <?php 
			 	foreach($result as $k => $v){
				 	$baby = $this->baby->get_one_list($v['baby_id']);
			 ?>
			 <div id="Released_album1">
			          
					  <div class="middow_album">
						  <a href="<?php echo front_url('index/baby_detail').'/'.$baby['id'];?>" target="_blank">
						  <img src="<?php echo base_url().'upload/baby/'.$baby['big_img'];?>" class="middow_album_small" style="width:200px;height:200px;"/>
						  <div class="xiaoxi" style="margin-bottom:10px;"><?php echo $v['desc'];?></div>
						  </a>
						  <?php if($v['liker_id'] == $user_id){?>
						  		<?php //这里是取消关注的代码?>
						  <?php }?>
					  </div>					  
			 </div>
			 <?php }?>
 </div>
 <?php }?>
<div id="bg"></div>
<div class="clr1"></div>
<script type="text/javascript">
    var bheight=$("body").height();
    function openlogin(){
        $("#bg").css("display","block");
        $("#bg").css("height",bheight);
        document.getElementById("form5").style.display="block";
    }
    function closelogin(){
        document.getElementById("bg").style.display="none";
        document.getElementById("form5").style.display="none";
    }

</script>
<?php $this->load->view('public/member_pubfooter');?>